<template>
  <div>
    <RouterLink tag="button" to="/home">Jump Home</RouterLink>

    <RouterLink tag="button" to="/about">Jump About</RouterLink>

    <button @click="fn1">Jump Home</button>

    <hr />
    <KeepAlive>
      <RouterView />
    </KeepAlive>
  </div>
</template>

<script>
export default {
  methods: {
    fn1() {
      this.$router.push("/home");
    },
  },
};
</script>
